import { http } from '@/common/service/service.js' 
const articleApi = {
	getAllArticle() {
		return http.get('edu/article/getAllArticle');	
	},
	getArticleInfo(params) {
		return http.get('edu/article/getArticleInfo/' + params.articleId + '/' + params.userId);
	},
	getArticleComment(params) {
		return http.get('edu/article/comment/getComment/' + params[0] + '/' + params[1]);
	},
	addComment(params) {
		return http.post('edu/article/comment', params, {emulateJSON:true});
	}
	
};

export default articleApi;
